package com.kongxx.tapestrystudy.pages.helloworld;

import org.apache.tapestry5.annotations.BeginRender;
import org.apache.tapestry5.annotations.AfterRender;

public class HelloWorld {

	private String message;
	
	@BeginRender
	public void begin() {
		this.message = "Hello World!";
		System.out.println("This is begin render.");
	}

	public String getMessage() {
		return message;
	}
	
	@AfterRender
	public void after() {
		this.message = null;
		System.out.println("This is after render.");
	}
}
